package cn.eonshine.cuba.lsms.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 油罐基础信息（b_oil_tank）Tank basic information
 * </p>
 *
 * @author Alan
 * @since 2018-08-03
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("b_oil_tank")
public class OilTankInfo extends Model<OilTankInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * Tank primary key
                         油罐主键
     */
    @TableId("ID")
    private String id;
    /**
     * Oil depot basic information primary key
                         油库主键
     */
    @TableField("OIL_DEPOT_ID")
    private String oilDepotId;
    /**
     * oil tank code
                         油罐编码
     */
    @TableField("OIL_TANK_CODE")
    private String oilTankCode;
    /**
     * oil tank name
                         油罐名称
     */
    @TableField("OIL_TANK_NAME")
    private String oilTankName;
    /**
     * Oil primary key
                         油品主键
     */
    @TableField("OIL_ID")
    private String oilId;
    /**
     * Tank capacity
                         罐容
     */
    @TableField("TANK_CAPACITY")
    private BigDecimal tankCapacity;
    /**
     * Safe tank capacity
                         安全罐容
     */
    @TableField("SAFETY_TANK_CAPACITY")
    private BigDecimal safetyTankCapacity;
    /**
     * Minimum tank capacity not to be sent out
                         最低不可付罐容
     */
    @TableField("MIN_TANK_CAPACITY")
    private BigDecimal minTankCapacity;
    /**
     * Oil tank type: 1 - nonfinished oil tank, 2 -production crude oil tank, 3 - sale oil tank
                         油罐类型：1-半成品油油库，2-生产原油油库，3-销售油库
     */
    @TableField("TANK_TYPE")
    private String tankType;
    /**
     * Whether to enable, 0-disable 1-use 
                         是否启用, 0 - 禁用 1- 启用
     */
    @TableField("USEABLE")
    private String useable;
    /**
     * creator
                         创建者
     */
    @TableField("CREATE_BY")
    private String createBy;
    /**
     * Create time
                         创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * updater
                         更新者
     */
    @TableField("UPDATE_BY")
    private String updateBy;
    /**
     * Update time
                         更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * Remarks information
                         备注信息
     */
    @TableField("REMARKS")
    private String remarks;
    /**
     * Delete the tag field
                         删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    
    @TableField("IS_FROM_INF")
    private int isFromInf;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
